package com.bins.dentist.clinic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author bins
 * @since 2023-04-23 13:22:37
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_patient")
@ApiModel(value = "PatientEntity对象", description = "")
public class PatientEntity {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("患者编码")
    @TableField("patient_code")
    private String patientCode;

    @ApiModelProperty("患者姓名")
    @TableField("patient_name")
    private String patientName;

    @ApiModelProperty("病历号")
    @TableField("medical_record_no")
    private String medicalRecordNo;

    @ApiModelProperty("患者昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty("手机号码")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty("性别 1:男 2:女")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty("患者类型 1:普通 2:VIP")
    @TableField("patient_type")
    private Integer patientType;

    @ApiModelProperty("患者来源 1:默认来源 2:员工介绍 3:朋友介绍")
    @TableField("patient_source")
    private Integer patientSource;

    @ApiModelProperty("出生日期")
    @TableField("birth_date")
    private LocalDateTime birthDate;

    @ApiModelProperty("身份证")
    @TableField("card_no")
    private String cardNo;

    @ApiModelProperty("头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("QQ")
    @TableField("qq")
    private String qq;

    @ApiModelProperty("微信号")
    @TableField("webchat")
    private String webchat;

    @ApiModelProperty("省份编码")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty("城市编码")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty("区域编码")
    @TableField("area_code")
    private String areaCode;

    @ApiModelProperty("地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("职业")
    @TableField("occupation")
    private String occupation;

    @ApiModelProperty(" 0 1")
    @TableField("is_del")
    private Integer isDel;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改人")
    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
